public class Point {
    private double x;
    private double y;
    private double z;
    public Point(){}
    public Point(double x, double y,double z){
        this.x=x;
        this.y=y;
        this.z=z;
    }
    public double getDistance(double x,double y,double z){
        return Math.sqrt(Math.pow((this.x-x),2)+Math.pow((this.y-y),2)+Math.pow((this.z-z),2));
    }
    public static void main(String[]args){
     Point origin = new Point(1.0,2.0,3.0);
     Point dest = new Point(4.0,5.0,6.0);
     System.out.println(origin.getDistance(4.0,5.0,6.0));
    }
}

